﻿using Microsoft.VisualBasic;

namespace Homework2
{
    /// <summary>
    /// wirte user's birthday comeout the days that the user has lived.
    /// </summary>
    internal class Program
    {
        static void Main(string[] args)
        {
            //input user's birthday
            Console.WriteLine("请输入您的生日：（格式年/月/日）");

            //define a new DataTime data
            DateTime birthDate;

            //read the user's birthday to the data
            DateTime.TryParse(Console.ReadLine(), out birthDate);

            //get the current date.
            DateTime Today = DateAndTime.Today;

            //get the days that the yser has lived
            int daySinceBirthDate = (Today - birthDate).Days;

            //output the result.
            Console.WriteLine(daySinceBirthDate); 
        }
    }
}
